package com.whcoding.jwt.token.annotation;


import com.whcoding.jwt.token.constant.AuthLevelEnum;

import java.lang.annotation.*;

/**
 * 授权验证注解
 *
 * @author
 */
@Inherited
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
public @interface TokenAuthentication {

	/**
	 * 授权验证名称说明
	 */
	String name() default "token授权验证";

	/**
	 * 授权验证级别，默认开放无需授权验证
	 */
	AuthLevelEnum authLevel() default AuthLevelEnum.NO_AUTH;
}
